package twentyThreePattern.create5.builder.section3;

public enum SqueenEnum {
	STAR(1, "启动"), STOP(2, "停止"), ENGINEBOOM(3, "引擎响"), ALARM(4, "鸣笛");
	private int value;

	private String name;

	public int getValue() {
		return value;
	}

	public String getName() {
		return name;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public void setName(String name) {
		this.name = name;
	}

	private SqueenEnum(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public boolean equals(SqueenEnum obj) {
		return (this.getValue() == obj.getValue());
	}
}
